package org.jimmy.tang.designpattern.structure.adapter;

/**
 * @author jimmy
 * 
 */
public class Adapter implements Target {
    private Adaptee adaptee;

    public Adapter(Adaptee adaptee) {
        this.adaptee = adaptee;
    }

    /* (non-Javadoc)
     * @see org.jimmy.tang.designpattern.structure.adapter.Target#adapteeMethod()
     */
    @Override
    public void adapteeMethod() {
        adaptee.adapteeMethod();

    }

    /* (non-Javadoc)
     * @see org.jimmy.tang.designpattern.structure.adapter.Target#adapterMethod()
     */
    @Override
    public void adapterMethod() {
        System.out.println("Adapter method!");

    }

}
